<?php

namespace app\index\validate;

use think\Validate;

class WorkValidate extends Validate
{
    protected $rule =   [
        'title'  => 'require',
        'content'   => 'require',
        'start_time'   => 'require',
        'end_time'   => 'require',
    ];

    protected $message  =   [
        'title.require' => '主题不能为空',
        'content.require' => '工作内容不能为空',
        'start_time.require' => '开始时间不能为空',
        'end_time.require' => '结束时间不能为空',
    ];
}